<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../application/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <input type="text" v-model="msg">
    </div>
    <input type="button" value="触发vue中的实例方法" onclick="addVue()">
</body>
<script>
    var vm=new Vue({
        // el:"#app",
        data:{
            msg:"初始变量"
        }
    });
    function addVue(){
        vm.$mount("#app");
    }
</script>
</html>